FROM moxm/java:1.8-full

RUN mkdir -p /seata-server

WORKDIR /seata-server

COPY ./seata-server-1.4.0 ./

COPY ./registry-dev.conf ./conf/registry-dev.conf

RUN chmod +x ./bin/seata-server.sh

EXPOSE 8091

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

ENTRYPOINT ["./bin/seata-server.sh"]